export const time = time => {
    time = Number(time + '000')
    let date = new Date(time)
    let { y, m , d} = {
        y: date.getFullYear(),
        m: (date.getMonth() + 1) < 10 ? `0${date.getMonth() + 1}` : date.getMonth() + 1,
        d: date.getDate()
    }
    return `${y}-${m}-${d}`
}